simplify osm_tag option processing. (#1325)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sat, 17 Aug 2024 17:37:13 +0000 (11:37 -0600)
committerGitHub <noreply@github.com>
Sat, 17 Aug 2024 17:37:13 +0000 (11:37 -0600)
I suspect the check of "tagnd" was used in developement before
opt_tagnd was added.  The only thing the check did was ignore
opt_tag values that started with tagnd, they weren't used elsewhere.

osm.cc

diff --git a/osm.cc b/osm.cc
index f24f0ee49361ff468f4af078cce60f7643adfbb6..bb0c62db3409b0cb1f63a280df3f158c40d1b193 100644 (file)
--- a/osm.cc
+++ b/osm.cc
@@ -835,9 +835,7 @@ OsmFormat::osm_rte_disp_trail(const route_head* route)
   osm_write_tag("name", route->rte_name);
   osm_write_tag("note", route->rte_desc);
 
-  if (opt_tag && (case_ignore_strncmp(opt_tag, "tagnd", 5) != 0)) {
-    osm_write_opt_tag(opt_tag);
-  }
+  osm_write_opt_tag(opt_tag);
 
   fout->writeEndElement(); // way
 }